package rtsp;

import java.net.InetSocketAddress;


public class Test
{
    public static final String Key_remoteAddress="192.168.1.16";
    public static final String Key_localAddress="192.168.1.102";
    public static final String Key_rtspUrl= "rtsp://192.168.1.16:554/1";


    public static void main(String[] args)
    {
        try {
            RTSPClient client = new RTSPClient(
                    new InetSocketAddress(Key_remoteAddress, 554),
                    new InetSocketAddress(Key_localAddress, 0),
                    Key_rtspUrl);
            client.initConfig(null ,null ,false);
            client.start();
        } catch (Exception e) {
            System.out.print("测试发生异常："+ e.getMessage());
            e.printStackTrace();
        }
    }
}
